﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="fenlei.aspx.cs"  Inherits="UI_fenlei" %>
 <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../images/style.css" rel="Stylesheet" />

    <script language="javascript" type="text/javascript" src="../js/jiazai.js"></script>
        <script language="javascript" type="text/javascript" src="../js/jquery-1.3.2.min.js"></script>
    <script src="../js/introbox.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" class="tableBorder"    border='1' cellspacing="0" style="border-collapse: collapse;"  bgcolor="#ffffff" bordercolor="#cccccc">
                   <tr align="center" valign="middle"> 
                     <th height="22" colspan="2">新 闻 栏 目 管 理 </th>
                   </tr>
                   <asp:Panel ID="plmodi" Visible="false" runat="server">
                   
                     <tr><td>修改</td>
                  <td>
                      <asp:TextBox runat="server"   ID="txbyname"></asp:TextBox>
                      排序<asp:TextBox runat="server" ID="txbpx"  Width="50px" title='header=[排序说明] body=[序号越大排的越靠前，请输入数字]'></asp:TextBox>
                      投稿<asp:DropDownList runat="server" ID="ddltg">
                      <asp:ListItem Value="0" Text="不允许"></asp:ListItem>
                      <asp:ListItem Value="1" Text="允许"></asp:ListItem>
                      </asp:DropDownList>
                      链接<asp:TextBox runat="server" ID="txblink"  Width="250px" title='header=[链接说明] body=[当点击此分类名称时就会跳转到这个链接地址]'></asp:TextBox>
                      <asp:CheckBox runat="server" ID="chkpl" Text="允许评论" />
                   <br/>
                   <asp:Button runat="server"  CssClass="btn" ID="btnmodok" Text="确定修改" onclick="btnmodok_Click"  />

                  </td>
                  </tr>
                   
                   </asp:Panel>
                   <asp:Panel ID="plrootadd" Visible="false" runat="server">
                  <tr><td>添加根分类</td>
                  <td>
                                     <asp:TextBox runat="server" ID="txbroot"></asp:TextBox>
                   <asp:Button runat="server"  CssClass="btn" ID="btnroot" Text="确定添加" onclick="btnroot_Click" />

                  </td>
                  </tr>
                  </asp:Panel>
                  
                  <tr>
                  <td>添加子分类</td>
                  <td >
                  在
                  <asp:DropDownList runat="server" ID="ddllm"  ></asp:DropDownList>
                          下添加子分类
                         
                   <asp:TextBox runat="server" ID="txbzifl"></asp:TextBox>
                   <asp:Button runat="server"  CssClass="btn" ID="btnziok" Text="确定添加" onclick="btnziok_Click" />
                    
                   </td>
                  </tr>
                     <tr title='header=[移动说明] body=[被移动项如果包含子项，那么所有的子项也将被移动]'>
                  <td>分类移动</td>
                  <td >
                  将
                  <asp:DropDownList runat="server" ID="ddlold"  ></asp:DropDownList>
                          移动到
                  <asp:DropDownList runat="server" ID="ddlnew"  ></asp:DropDownList>
                    <asp:Button runat="server"  CssClass="btn" ID="btnmove" Text="确定移动" onclick="btnmove_Click"  />
                    
                   </td>
                  </tr>
                  </table>
        <table width="100%" class="tableBorder" id="tb" border='1' cellspacing="0" style="border-collapse: collapse;"  bgcolor="#ffffff" bordercolor="#cccccc">

                  <tr><td>名称</td><td>排序,评论,投稿</td><td>链接</td><td>操作</td></tr>
                  <asp:Literal runat="server" ID="litlist" EnableViewState="false"></asp:Literal>
      </table>
        
    </form>
                        <script type="text/javascript">

        var csseven = { 'background-color': 'f4f5eb' };
        var cssodd = { 'background-color': '' };
        var csshover = { 'background-color': 'CCFF99' };
        $('#tb  tr:even').css(csseven);
        $("#tb   tr:even").hover(
          function() { $(this).css(csshover); },
          function() { $(this).css(csseven); }
          );
        $("#tb   tr:odd").hover(
          function() { $(this).css(csshover); },
          function() { $(this).css(cssodd); }
          );
    </script>

</body>
</html>
